<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <style>
    .overflow{
      width: 100px;
      height: 50px;
      /* white-space: nowrap; */
      /* 溢出隐藏 */
      overflow: hidden;
      /* 设置滚动条，无论是否有内容溢出 ，都会显示滚动条*/
      overflow: scroll;
      /* 自动，如果内容溢出则会出现滚动条，不溢出则正常显示 */
      overflow: auto;
    }
  </style>
  <div class="overflow">
    overflow溢出overflow溢出ovoverflow溢出
  </div>
</body>
</html>